<?php 
header("content-type:text/html;charset=utf8");
/**
 * 
 */
class ser
{
	private $city;
	
	function __construct()
	{
		$this->city = $_GET['city'];
		$this->getweather();
	}
	public function getweather()
	{
		$url = "http://api.k780.com:88/?app=weather.future&weaid=$this->city&&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json";
		$data = file_get_contents($url);
		echo $data;
	}

}
new ser();













 ?>